package cn.dao.Impl;

import cn.base.Impl.IBaseDaoImpl;
import cn.dao.PrivilegeDao;
import cn.domain.Privilege;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/3/23 0023.
 */
@Repository
public class PrivilegeDaoImpl extends IBaseDaoImpl<Privilege> implements PrivilegeDao {

    @Override
    public List<Privilege> privilegeTop() {
        String hql="from Privilege where PrivilegeIds is null";
        return  this.session().createQuery(hql).list();
    }
}
